package cn.silver.module.web.model;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@NoArgsConstructor
@Schema(name = "LoginEmailModel", title = "邮箱验证码登录对象")
public class LoginEmailModel {

    @NotBlank(message = "{user.email.not.blank}")
    @Email(message = "{user.email.not.valid}")
    private String email;


    @NotBlank(message = "{email.code.not.blank}")
    private String emailCode;

}
